#include "IntGeometry.h"

bool IntRect::hitTest( const IntPoint& point ) const
{
	return point.x >= origin.x && point.y >= origin.y && point.x < origin.x + size.width && point.y < origin.y + size.height;
}

bool IntRect::hitTest( int x, int y ) const
{
	return x >= origin.x && y >= origin.y && x < origin.x + size.width && y < origin.y + size.height;
}